# -*- coding: utf-8 -*-

# ========================================== #
# class    : ChromeBrowClass                 #
# version  : 3.2.0.0                         #
# update   : 2024-11-11                      #
# need pip : requests                        #
#            selenium >= 4.13                #
#            numpy                           #
#            PyScreeze                       #
#            pillow                          #
# info     : chrome 98+ \ chrome 115+        #
#            selenium 4.13(兼容3.14、4.13+)  #
# email me : 609433259@qq.com                #
# ========================================== #

import warnings

from selenium import __version__ as _selenium_version_

_f_selenium_version_, _s_selenium_version_, *_ = _selenium_version_.split('.')
# selenium主版本&副版本号
_f_selenium_version_ = int(_f_selenium_version_)
_s_selenium_version_ = int(_s_selenium_version_)
if not all([_f_selenium_version_ >= 4, _s_selenium_version_ >= 13]):
    warnings.warn(f'ChromeBrowClass类建议selenium版本为4.13+，当前版本为{_f_selenium_version_}.{_s_selenium_version_}')

# 主要功能
from .BrowClass import ChromeBrowClass
from .BrowTools.SystemCommand import update_chromedriver, startup_chrome_no_driver, kill_chrome, kill_chrome_driver, not_show_session_recovery
from .BrowTools.ImageLocation import png_location_element
from .BrowTools.ImageLocation2 import png_location_element2

# 扩展版功能
from .BrowSettings.BrowProFunction import setting_popups


__version__ = '3.2.1.0'


__all__ = [
    'ChromeBrowClass',
    'update_chromedriver',
    'startup_chrome_no_driver',
    'kill_chrome',
    'kill_chrome_driver',
    'not_show_session_recovery',
    'png_location_element',
    'png_location_element2',
    'setting_popups',
]
